import Cookies from 'js-cookie'
// 前后端协定一个默认key ，用于存储token
const TokenKey = 'Admin-Token'

// 
export function getToken ():string|undefined {
  return Cookies.get(TokenKey)
}
// 设置token  setToken
export function setToken (token:string) {
  return Cookies.set(TokenKey, token)
}

export function removeToken () {
  return Cookies.remove(TokenKey)
}